package com.dc.bobaoge.plugins.push.module.apple;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.lang.management.ManagementFactory;
import java.lang.management.OperatingSystemMXBean;

/**
 * SpringbootBusinessPushModuleAppleApplication
 *
 * @author chenxueli
 * @date 2023-11-15 09:49:01
 */
@SpringBootApplication
public class SpringbootBusinessPushModuleAppleApplication {

    public static void main(String[] args) throws Exception {
//        var payload = PushNotificationBigPayload.alert("");
//        payload.addAlert("Message received from Bob");
//        payload.addCustomDictionary("acme2", Arrays.asList("bang", "whiz"));
//
//        var device = new BasicDevice("1234567890123456789abcdef0123456789abcdef");
//
//        PushNotificationManager.sendNotification(device, payload);
        OperatingSystemMXBean osBean = (com.sun.management.OperatingSystemMXBean) ManagementFactory.getOperatingSystemMXBean();
        System.out.println("osBean.getAvailableProcessors() = " + osBean.getAvailableProcessors());

        SpringApplication.run(SpringbootBusinessPushModuleAppleApplication.class, args);
    }

}
